﻿<include file="Public/head"/>
<div class="container-fluid">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">修改商品</h3>
    </div>
    <div class="modal-body">
        <form class="form-horizontal" action="{:U('Test/edit')}" method="post">
            <div class="control-group">
                <label class="control-label">名称</label>
                <div class="controls">
                    <input type="text" name="name" placeholder="名称" value="<?=$data['name']?>">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">数量</label>
                <div class="controls">
                    <input type="text" name="num" placeholder="数量" value="<?=$data['num']?>">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">重量</label>
                <div class="controls">
                    <input type="text" name="weight" placeholder="重量" value="<?=$data['weight']?>">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">链接</label>
                <div class="controls">
                    <input type="text" name="link" placeholder="链接" value="<?=$data['link']?>">
                </div>
            </div>
            <div class="modal-footer">
                <input  type="hidden" name="id" value="<?=$data['id']?>"/>
                <a class="btn" href='{:U("Test/index")}'>返回</a>
                <input type="submit" class="btn btn-primary">
            </div>
        </form>
    </div>

</div>

<include file="Public/foot"/>
